<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var res = +prompt("请输入你的成绩")
       if(res > 100){
            console.log("作弊");
       } else if(res >= 90){
            console.log("A");
       }else if(res >= 80){
            console.log("B");
       }else if(res >= 70){
            console.log("C");
       }else if(res >= 60){
            console.log("D");
       }else if(res >= 0){
            console.log("E");
       }else{
            console.log("NB");
       }
    </script>
</body>
</html>